package com.smzd.projforge.domain;

import java.util.ArrayList;
import java.util.List;

import com.smzd.core.annotations.ModuleGroup;
import com.smzd.core.domain.BaseOwnedEntity;
import com.smzd.framework.system.domain.Meeting;

@ModuleGroup(value = "projforge", moduleNames = "suits", moduleName = "suit")
public class Suit extends BaseOwnedEntity<Meeting> {
    private static final long serialVersionUID = -1489752401028158329L;
    private List<Render> renders;

    public List<Render> getRenders() {
        return renders;
    }

    public void setRenders(List<Render> renders) {
        this.renders = renders;
    }

    public void addRender(Render render) {
        if (renders == null) {
            synchronized (this) {
                if (renders == null) {
                    renders = new ArrayList<Render>();
                }
            }
        }
        renders.add(render);
    }
}